<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Twin Tulipware</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<?php $this->load->helper('HTML');
echo link_tag('css/style2.css');
echo link_tag('images/favicon.ico','shortcut icon','image/x-icon');
?></head>
<div id="page1">
<body>
<div id="wrapper">
	<?php $this->load->view('admin_views/header'); ?><hr />
	</div>
	<div id="page">
	<div id="page-bgtop">
		<div id="content">
			<div class="post">
				<h2 class="title">Data Pengajuan Pra Calon Manager </h2>
				<table>
                <form method="post" action="<?php echo $form_action?>">
                        <tr>
							<td> Cari Berdasarkan Nama Dealer</td>
                            <td>
                               <input name="cari_nama" value="" size="30" type="text">
                            </td>
							<td>&nbsp;
						   </td>
                        </tr>
						<tr>
							<td>
							    Cari Berdasarkan Bulan
							</td>
                            <td>
								<?php echo $combo_bulan?>
                            </td>
							<td>
								<input type="submit" name="submit" value="Cari">
                            </td>
                        </tr>
                    </table>
				</form>	
		        <table width="90%" border="0" cellpadding="1" cellspacing="1" id="data" align="center">
        <thead>
        <tr  align="center" class="table" >
           <th >No</th>
           <th >Kode Dealer</th>
            <th >Nama Dealer</th>
            <th >Unit</th>
            <th >Tanggal Pra CM</th>
            <th>Cabang</th>
            <th >Action</th>

        </tr>
    </thead>
    <tbody>

    <!-- ============isi ============ -->

		<?php
        if(!empty($pra_cm)){
			$i=1;
			foreach($pra_cm as $m) : 
            
		?>
      	<tr class='data' align='center'>
			<td ><?php echo $i++; ?></td>
			<td align='left'>&nbsp;<?php echo $m->strkode_dealer; ?></td>
            <td align='left'>&nbsp;<?php echo $m->strnama_dealer; ?></td>
            <td align='left'>&nbsp;<?php echo $m->strnama_unit; ?></td>
            <td align='left'>&nbsp;<?php echo $m->tanggal; ?></td>
            <td align='left'>&nbsp;<?php echo $m->cabang; ?></td>
            <td align='left'>&nbsp;<?php echo anchor ('calon_manager/batal_pra/'.$m->strkode_dealer, 'Batal', array('onClick' =>"return confirm ('Apakah Anda yakin akan menghapus data ')")); ?>
			</td>

        </tr>
		<?php 
        endforeach; 
        }else{
        ?>
    <tr>
        <td colspan="6" align="center">
            No Data Display
        </td>
    </tr>
    <?php } ?>
    
    </tbody>
</table>
		  </div>
			</div>
		<!-- end #content -->
		<?php $this->load->view('admin_views/sidebar_manager'); ?><!-- end #sidebar -->
		<div style="clear: both;">&nbsp;</div>
	</div>
	</div>
	<!-- end #page -->
	<div id="footer-bgcontent">
	<?php $this->load->view('admin_views/footer'); ?></div>
	<!-- end #footer -->

</body>
</html>
